/*
 * Systemprogrammierung
 * Multiplayer-Quiz
 *
 * Client
 * 
 * listener.h: Header für den Listener-Thread
 */

#ifndef LISTENER_H
#define LISTENER_H

#include "../common/rfc.h"
#include <stdbool.h>
/* ... */
typedef struct {
	int id;
	char name[32];
}USER;
USER userlist[4];

void ErrorMessageEmpfangen(PACKET packet);
void *listener_main();
//void loginRequest(char* name);
//void catalogRequest( char* name);
//void catalogResponseEmpfangen(PACKET packet);
void playerlistEmpfangen(PACKET packet,bool);
//void questionRequest(char* name);
void startgameEmpfangen(PACKET packet);
void questionEmpfangen(PACKET packet);
void questionAnswered();
//in main
//void preparation_onCatalogChanged(const char *newSelection);//void catalogChange(const char *newSelection);
//void preparation_onStartClicked(const char *currentSelection);//void startGame(const char *currentSelection);

#endif

